all: main testutil testhttp testuri testuseragent testsimple teststatus testredirect testcookie

main: main.cpp HTTP/Connection.h
	g++ main.cpp -o main

testutil: knutil.h testutil.cpp
	g++ testutil.cpp -o testutil

testhttp: HTTP.h testhttp.cpp
	g++ testhttp.cpp -o testhttp

testuri: URI.h testuri.cpp
	g++ testuri.cpp -o testuri

testuseragent: LWP.h LWP/UserAgent.h HTTP.h HTTP/Connection.h testuseragent.cpp
	g++ testuseragent.cpp -o testuseragent

testsimple: LWP.h LWP/Simple.h LWP/UserAgent.h HTTP.h HTTP/Connection.h testsimple.cpp
	g++ testsimple.cpp -o testsimple

teststatus: HTTP/Status.h teststatus.cpp
	g++ teststatus.cpp -o teststatus

testredirect: HTTP.h HTTP/Connection.h testredirect.cpp
	g++ testredirect.cpp -o testredirect

testcookie: HTTP.h testcookie.cpp
	g++ testcookie.cpp -o testcookie

clean:
	rm main testutil testhttp testuri testuseragent testsimple teststatus testredirect testcookie

